package test;

import resoft.jeasyform.event.EventHandler;
import resoft.jeasyform.components.Window;
import resoft.jeasyform.components.Component;
import resoft.jeasyform.core.Session;

/**
 * <p></p>
 * User: albert
 * Date: Aug 30, 2007
 * Time: 2:14:51 AM
 */
public class MenuWindowInit implements EventHandler {
    public boolean execute(Window window, Component source, int eventType) {
        window.changeComponent("msg","text","Welcome," +
                Session.getInstance().get("user") +
                ".Your favoriate tool is:" + window.getParameter("tool"));
        return false;
    }
}
